package com.nas.crocus.dao.impl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.nas.crocus.dao.CostoDao;
import com.nas.crocus.domain.Costo;

@Repository
public class CostoDaoImp implements CostoDao{

    @Autowired
    private SessionFactory sessionFactory;
    
    @Override
    public Costo buscar(Long costoId) {
        return (Costo) sessionFactory.getCurrentSession().get(Costo.class,
                costoId);
    }

}
